//
//  XQEmergencyHeaderView.m
//  JoinPeso
//
//  Created by 小琦 on 2024/11/26.
//

#import "XQEmergencyHeaderView.h"

@interface XQEmergencyHeaderView()
@property (nonatomic,strong) UILabel *titleLb;
@end

@implementation XQEmergencyHeaderView


- (instancetype)init
{
    self = [super init];
    if (self) {
        [self makeUI];
        [self makeConstraints];
    }
    return self;
}

- (void)makeUI {
    self.backgroundColor = [UIColor clearColor];
    [self addSubview:self.titleLb];
}

- (void)makeConstraints {
    [self.titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@12);
        make.top.equalTo(@0);
        make.height.mas_equalTo(22);
    }];
}

#pragma mark - setter

- (void)setTitle:(NSString *)title {
    self.titleLb.text = title;
}

#pragma mark - lazy

- (UILabel *)titleLb {
    if (!_titleLb) {
        _titleLb = [[UILabel alloc] init];
        _titleLb.font = [UIFont boldSystemFontOfSize:16];
        _titleLb.textColor = kBlackTextColor;
    }
    return _titleLb;
}

@end
